<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>注册</title>
</head>
<body>
<%
    if (request.getSession().getAttribute("user_reg_message") != null) {
        out.print("<script>alert(\"" + (request.getSession().getAttribute("user_reg_message")) + "\");</script>"); // 弹窗提示
        request.getSession().removeAttribute("user_reg_message"); // 删除会话
    }
%>
<form method="post" id="form1" name="form1" action="${pageContext.request.contextPath}/deal/register.jsp">
    <table>
        <tr>
            <td colspan="2">
                <label>注册</label>
            </td>
        </tr>
    </table>
    <label>
        用户名：
        <input type="text" name="username"/>
    </label><br>
    <label>
        Email：
        <input type="email" name="email">
    </label><br>
    <label>
        密码：
        <input type="password" name="password"/>
    </label><br>
    <label>
        请再输入一次：
        <input type="password" name="confirmPassword"/>
    </label><br>
    <label>
        验证码：
        <input type="text" name="validateCode">
    </label><br>
    <label>
        <img src="<c:url value="/validateCode"/>" alt="validateCode" height="60px">
    </label><br>
    <input type="submit" value="提交">
</form>
</body>
</html>
